/*
 * Filename:    StorageServiceImpl.java
 * Copyright:   2014 中国平安保险（集团）股份有限公司 版权所有
 * Company:     平安科技养老险及健康险系统开发部
 * Create at:   2014-12-29
 */
package com.paic.mhis.hcpms.common.storage.biz.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.paic.mhis.hcpms.common.storage.biz.service.StorageService;
import com.paic.mhis.hcpms.common.storage.dto.HcpmsStorageDataDTO;
import com.paic.mhis.hcpms.common.storage.intergration.dao.StorageDao;

@Service("storageService")
public class StorageServiceImpl implements StorageService {
	@Autowired
	private StorageDao storageDao;

	@Override
	public void insertStorageDataDto(HcpmsStorageDataDTO dto) {
		storageDao.insertStorageDataDto(dto);

	}

	@Override
	public void updateStorageDataDto(HcpmsStorageDataDTO dto) {
		storageDao.updateStorageDataDto(dto);
	}

	@Override
	public HcpmsStorageDataDTO getStorageData(HcpmsStorageDataDTO dto) {
		return storageDao.getStorageData(dto);
	}

	@Override
	public List<HcpmsStorageDataDTO> getStorageDataList(HcpmsStorageDataDTO dto) {
		return storageDao.getStorageDataList(dto);
	}

	@Override
	public void deleteStorageDate(HcpmsStorageDataDTO dto) {
		storageDao.deleteStorageDate(dto);
	}
}
